package practice;

import private1.Car1;
import private1.Day;

public class Car extends Car1 {
    private int s;//表示行驶距离
    Car(String name, int width, int height, int length, double fuel, Day purchaseDay) {
        super(name, width, height, length, fuel, purchaseDay);//调用基类的构造函数
    }
    public int getS(){//添加，修改
        return s;
    }
}
